import { createRouter, createWebHistory } from 'vue-router'
import process from "process";
import routeList from "src/router/route.js";
// import Home from '../views/Home.vue'

const routes = [
  {
    path:'/index',
    name:'index',
    // component: ()=>import('src/layout/default.vue'),

  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ 'src/views/About.vue')
  },
  {
    path: '/test',
    name: 'Test',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ 'src/views/Test.vue')
  },
  {
    path:'/components',
    name:'Components',
    component:()=>import('src/views/Components.vue')
  },
  {
    path:'/Dlg',
    name:'Dlg',
    component:()=>import('src/views/Dlg.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes:routeList
})

export default router
